<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('depts', 'DeptController');
    $router->resource('anquanyuans', 'AnquanyuanController');
    $router->resource('dianqis', 'DianqiController');
    $router->resource('xhsmhqs', 'XhsmhqController');
    $router->resource('contracts', 'ContractController');
    $router->resource('louzhangs', 'LouzhangfanganController');
    $router->resource('yinhuans', 'YinhuanController');
    $router->resource('mokuais', 'LuodianweiController');
    $router->resource('fangjians', 'FangjianController');
    $router->resource('jiankongs', 'JiankongController');
    $router->resource('peixunyanlians', 'PeixunyanlianController');
    $router->resource('paichas', 'PaichaController');
    $router->resource('yuans', 'YuanController');
    $router->resource('zhidus', 'ZhiduController');
    $router->resource('kongjians', 'KjdatumController');
});
